<div class="container">
    <table class="table table-borderless">
        <thead>
            <tr>
            <th scope="col">ID</th>
            <th scope="col">名字</th>
            <th scope="col">班级</th>
            <th scope="col">爱好</th>
            <th scope="col">操作</th>
            </tr>
        </thead>
        <tbody>
            {{#each list}}
                <tr>
                    <th scope="row">{{ this.id }}</th>
                    <td>{{ this.name }}</td>
                    <td>{{ this.class_name }}</td>
                    <td>{{ this.hobby }}</td>
                    <td>
                        <a href="javascript:confirm('确定要删除吗?')?location.href='/del/{{ this.id }}':void(0);">删除</a>
                        <a href="/edit/{{ this.id }}">编辑</a>
                    </td>
                </tr>
            {{/each}}
        </tbody>
    </table>
</div>